export default class Leave {
  static list (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/leave/listWorkOrder/flowLeave', 'post', params, axiosOption, httpOption);
  }
  static add (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/leave/startAndTakeUserTask/flowLeave', 'post', params, axiosOption, httpOption);
  }
  static detail (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/app/leave/viewHistoricTaskBusinessData/flowLeave', 'get', params, axiosOption, httpOption);
  }
  static cancle (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/flow/flowOperation/cancelWorkOrder', 'post', params, axiosOption, httpOption);
  }
  static records (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/flow/flowOperation/listFlowTaskComment', 'get', params, axiosOption, httpOption);
  }
  static processBpmn (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/flow/flowOperation/viewProcessBpmn', 'get', params, axiosOption, httpOption);
  }
  static viewHighlightFlowData (sender, params, axiosOption, httpOption) {
    return sender.doUrl('admin/flow/flowOperation/viewHighlightFlowData', 'get', params, axiosOption, httpOption);
  } 
}
